-include ../../../common.mk
CHARMC	= ../../../../bin/charmc $(OPTS)

all: period_selection

period_selection: period_selection.decl.h period_selection.C
	$(CHARMC) period_selection.C -o period_selection -module TreeLB

period_selection.decl.h: period_selection.ci
	$(CHARMC) period_selection.ci

test: period_selection
	$(call run, +p1 ./period_selection +balancer RotateLB +MetaLB +LBObjOnly)
	$(call run, +p2 ./period_selection +balancer RotateLB +MetaLB +LBObjOnly)
	$(call run, +p4 ./period_selection +balancer RotateLB +MetaLB +LBObjOnly)

testp: period_selection
	$(call run, +p$(P) ./period_selection +balancer RotateLB +MetaLB +LBObjOnly)

smptest: period_selection
	$(call run, +p2 ./period_selection +balancer RotateLB +MetaLB +LBObjOnly ++ppn 2)
	$(call run, +p4 ./period_selection +balancer RotateLB +MetaLB +LBObjOnly ++ppn 2)

clean:
	rm -rf *.decl.h *.def.h period_selection charmrun

